package com.example.jurisdiction.Service.impl;

import java.util.List;

import com.example.jurisdiction.Mapper.user_roleMapper;
import com.example.jurisdiction.Service.user_roleService;
import com.example.jurisdiction.dto.user_roleDto;
import entity.user_role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;



@Service
public class user_roleServiceimpl implements user_roleService {

	@Autowired
	private user_roleMapper userDao;
	
	
	//���ݱ�Ų�ѯ�û�
	@Override
	public List<user_role> getUser_role(int id) throws Exception {
		// TODO Auto-generated method stub
		return this.userDao.getUser_role(id);
	}


	//ɾ���û����н�ɫ
	@Override
	public int delUser_role(Integer rid) throws Exception {
		// TODO Auto-generated method stub
		return this.userDao.delUser_role(rid);
	}
	

	//���û�����ɫ
	@Override
	public int addUser_role(user_roleDto dto) throws Exception {
		// TODO Auto-generated method stub
		
		return this.userDao.addUser_role(dto);
	}
	
}
